package de.slothsoft.commons.swing.editorview;

public abstract class AbstractView extends AbstractPart implements View {

	private static final long serialVersionUID = 1L;

	private EditorViewPanel parent;

	@Override
	public void init(EditorViewPanel parent) {
		this.parent = parent;
	}

	protected EditorViewPanel getEditorViewParent() {
		return this.parent;
	}

	public void closeView() {
		getEditorViewParent().closeView(this);
	}
}
